import http from '@/utils/http'

//登录
export function login(data) {
    return http.post('/lzh/user/login', data)
}

//退出登录
export function logout() {
    return http.post('/lzh/user/logout')
}

//获取用户信息
export function getUserInfo() {
    return http.get('/lzh/user/get/login')
}

//获取用户信息
export function updatePassword(data) {
    return http.put('/lzh/user/updatePassword', data)
}

//更新用户信息
export function updateUserInfo(data) {
    return http.put('/lzh/user/updateUserInfo', data)
}

//更新用户信息 - system
export function editUserInfo(data) {
    return http.put('/lzh/user/editUserInfo', data)
}

//添加用户
export function addUser(data) {
    return http.put('/lzh/user/addUser', data)
}

//分页查询
export function findUserPage(data) {
    return http.post('/lzh/user/findUserPageList', data)
}

//删除用户
export function deleteUser(data) {
    return http.post(`/lzh/user/deleteUser`, data)
}

//查询用户详情
export function findUserDetail(data) {
    return http.post(`/lzh/user/findUserDetail`, data)
}